import { Request, Response } from 'express'

const notFoundMiddleware = (req: Request, res: Response): void => {
    console.log(`${req.method} ${req.path} - Not Found`);
    res.status(404).json({ message: "Not Found" });
    return;
};

export default notFoundMiddleware;
